<template>
  <div class="parent-more-root">
    <div class="nav">
      <router-link to="/parent/view-letter" active-class="nav-active">查看信件</router-link>
      <router-link to="/parent/chat" active-class="nav-active">对话沟通</router-link>
      <router-link to="/parent/more-features" active-class="nav-active">更多功能</router-link>
    </div>
    <div class="container">
      <h3>更多功能</h3>
      <div class="feature-grid">
        <router-link to="/parent/grade-query" class="feature-card">
          <div class="feature-icon"><img src="/img/img.png" alt="logo" class="feature-logo-img" /><i class="fa fa-bar-chart"></i></div>
          <div class="feature-title">学生成绩查询</div>
          <div class="feature-desc">查看学生各学期的考试成绩和排名情况，掌握学习进度。</div>
        </router-link>
        <router-link to="/parent/leave-application" class="feature-card">
          <div class="feature-icon"><img src="/img/img1.png" alt="logo" class="feature-logo-img" /><i class="fa fa-calendar-times-o"></i></div>
          <div class="feature-title">请假申请</div>
          <div class="feature-desc">在线提交学生请假申请，实时查看审批状态，方便高效。</div>
        </router-link>
        <router-link to="/parent/school-notice" class="feature-card">
          <div class="feature-icon"><img src="/img/img2.png" alt="logo" class="feature-logo-img" /><i class="fa fa-bullhorn"></i></div>
          <div class="feature-title">校园通知</div>
          <div class="feature-desc">获取学校最新通知、活动安排和重要公告，及时了解校园动态。</div>
        </router-link>
      </div>
    </div>
  </div>
</template>
<script>
export default { name: 'ParentMoreFeatures' }
</script>
<style scoped>
.parent-more-root {
  min-height: 100vh;
  background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
  padding-bottom: 40px;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  background: #fff;
  border-radius: 12px;
  margin: 0 auto 18px auto;
  max-width: 900px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  padding: 10px 0;
}
.nav a {
  color: #4c51bf;
  font-weight: 500;
  font-size: 16px;
  padding: 6px 18px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.nav a:hover, .nav-active {
  background: #e6f4ff;
  color: #2563eb !important;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  padding: 32px 28px 24px 28px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: #333;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #e6f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon i {
  font-size: 28px;
  color: #007bff;
}
.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #007bff;
}
.feature-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
.feature-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 6px;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
@media (max-width: 1000px) {
  .container, .nav { max-width: 100vw; }
  .container { border-radius: 0; }
}
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}
</style> 